package com.paw.ruoyi.admin.core.resource;

import com.paw.ruoyi.admin.common.domain.Result;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Rubble
 * @date 2022/4/24
 **/
public interface IUploadFileResource {

  /**
   * 获取域名
   * @return
   */
  @GetMapping("/api/common/upload/getDomainUrl")
  Result<String> getDomainUrl();


  /**
   * 通过key获取url
   * @param key
   * @return
   */
  @GetMapping("/api/common/upload/getUrlByKey")
  Result<String> getUrl (String key);

  /**
   * 通过url获取key
   * @param url
   * @return
   */
  @GetMapping("/api/common/upload/getKeyByUrl")
  Result<String> getKey (String url);

}
